package com.neusoft.elmboot.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.neusoft.elmboot.po.DeliveryAddress;

@Mapper
public interface DeliveryAddressMapper {
	
	//查询某个用户的配送地址列表
	@Select("select * from deliveryaddress where userId=#{userId}")
	public List<DeliveryAddress> listDeliveryAddressByUserId(String userId);
	
	//通过指定的地址id得到地址的详细信息
	@Select("select * from deliveryaddress where daId=#{daId}")
	public DeliveryAddress getDeliveryAddressById(Integer daId);
}
